package a;

import java.text.DecimalFormat;

public class FourThree {

	public static void main(String[] args) {
	    
	}
	public boolean equals(Object obj)
    {
        DecimalFormat df=new DecimalFormat("0.00");
        boolean tmp;
        if(obj instanceof Employee)
        {
            Employee e=(Employee)obj;
            return ((super.equals(e))&&(this.company.equals(e.company))&&(df.format(this.salary)==df.format(e.salary)))||((super.equals(e))&&(this.company==null)&&(e.company==null)&&(df.format(this.salary)==df.format(e.salary)));
        }
        else return super.equals(obj);
    }

}
